package com.itheima.pinda.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itheima.pinda.DTO.entity.PdCoreStation;
import com.itheima.pinda.service.PdCoreStationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * <p>
 * 岗位 前端控制器
 * </p>
 *
 * @author xsf
 * @since 2021-11-11
 */
@RestController
@RequestMapping("/authority/station")
@CrossOrigin
public class PdCoreStationController {

    @Autowired
    private PdCoreStationService pdCoreStationService;

    @PostMapping("/page")
    public IPage<PdCoreStation> page(@RequestBody Map<String,Object> map){


        return pdCoreStationService.queryByPage(map);
    }
}
